﻿using Api.Model.Dto.TagDto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Api.Model.Dto.ArticleDto
{
    public class CreateArticleInput
    {
        [Required(ErrorMessage ="标签不能为空!")]
        public List<int> TagIds { get; set; }
        [Required(ErrorMessage ="文章标题不能为空！"), MaxLength(30, ErrorMessage = "长度不能超过30个字符")]
        public string Title { get; set; }
        [Required(ErrorMessage ="文章内容不能为空!")]
        public string Body { get; set; }
        [Required(ErrorMessage = "标签不能为空!")]
        public int? ArticleTypeId { get; set; }
        [Required(ErrorMessage = "摘要不能为空!")]
        public string Digest { get; set; }

    }
}
